package com.milotnt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.milotnt.form.MemberQueryForm;
import com.milotnt.pojo.ClassOrderEntity;
import com.milotnt.vo.ClassOrderVo;

import java.util.List;

public interface ClassOrderMapper extends BaseMapper<ClassOrderEntity> {

    List<ClassOrderVo> selectMemberOrderList(Long classId);

    //添加报名信息
    Boolean insertClassOrder(ClassOrderEntity classOrder);

    //根据会员账号查询个人报名课表
    List<ClassOrderEntity> selectClassOrderByMemberAccount(String memberAccount);

    //删除已预约的课程
    Boolean deleteByClassOrderId(Long classOrderId);


    List<ClassOrderVo> selectclassOrderList(MemberQueryForm form);
}
